package com.lemon.exam.entity.vo;

import com.lemon.exam.entity.dto.UserScoreDTO;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;
import java.util.Map;

/**
 * 试卷统计 - 视图对象
 *
 * @author Lemon
 * @since 2025/7/23 15:16
 */
@Schema(name = "统计 - 视图对象")
public record PaperStatisticsVO(
        @Schema(name = "试卷信息") PaperVO paper,
        @Schema(name = "用户得分") List<UserScoreDTO> userScoreList,
        @Schema(name = "分段统计 key[分段名称] value[人数]") Map<String, Long> segmentation,
        @Schema(name = "及格率") double passRate,
        @Schema(name = "平均分") double avgScore) {
}
